package cn.exrick.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;

@Data
public class TbItem implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Long id;

    private String title;

    private String sellPoint;

    private BigDecimal price;

    private BigDecimal original;

    private Integer num;

    private Integer limitNum;

    private String image;

    private Long cid;

    private Byte status;

    private Date created;

    private Date updated;

    private Long sales;

    //===========================================

    private Long itemSkuGoodCatAttrId;

    private String skuTitle;

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public void setSellPoint(String sellPoint) {
        this.sellPoint = sellPoint == null ? null : sellPoint.trim();
    }

    public void setImage(String image) {
        this.image = image == null ? null : image.trim();
    }

    public String[] getImages() {
        if (image != null && !"".equals(image)) {
            String[] strings = image.split(",");
            return strings;
        }
        return null;
    }

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public BigDecimal getOriginal() {
		return original;
	}

	public void setOriginal(BigDecimal original) {
		this.original = original;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Integer getLimitNum() {
		return limitNum;
	}

	public void setLimitNum(Integer limitNum) {
		this.limitNum = limitNum;
	}

	public Long getCid() {
		return cid;
	}

	public void setCid(Long cid) {
		this.cid = cid;
	}

	public Byte getStatus() {
		return status;
	}

	public void setStatus(Byte status) {
		this.status = status;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public Date getUpdated() {
		return updated;
	}

	public void setUpdated(Date updated) {
		this.updated = updated;
	}

	public Long getSales() {
		return sales;
	}

	public void setSales(Long sales) {
		this.sales = sales;
	}

	public Long getItemSkuGoodCatAttrId() {
		return itemSkuGoodCatAttrId;
	}

	public void setItemSkuGoodCatAttrId(Long itemSkuGoodCatAttrId) {
		this.itemSkuGoodCatAttrId = itemSkuGoodCatAttrId;
	}

	public String getSkuTitle() {
		return skuTitle;
	}

	public void setSkuTitle(String skuTitle) {
		this.skuTitle = skuTitle;
	}

	public String getTitle() {
		return title;
	}

	public String getSellPoint() {
		return sellPoint;
	}

	public String getImage() {
		return image;
	}
}